<template>
  <el-card>
    <div slot="header" class="card__title">{{ label }}</div>

    <div class="card__content">
      <slot></slot>
    </div>

    <div class="card__use">
      <div class="card__use__label">使用</div>
      <div class="card__use__value">{{ className }}</div>
    </div>
  </el-card>
</template>

<script>
export default {
  name: 'AtomCard',
  props: {
    label: {
      type: String
    },
    className: {
      type: String
    }
  }
}
</script>

<style lang="scss" scoped>
.card {

  &__title {
    padding: 10px 0;
    font-size: 20px;
    color: var(--color-text-primary);
  }

  &__content {
    min-width: 300px;
  }

  &__use {
    display: flex;
    align-items: center;
    margin-top: 10px;

    font-size: 18px;
    color: var(--color-text-primary);

    &__label {
      color: var(--color-text-secondary);
      margin-right: 10px;
    }
  }
}
</style>
